package domd3;

public class test {
    public static void main(String[] args) {
       int[] num=new int[10];
        try {
            for (int i = 0; i <=num.length; i++) {
                System.out.println(num[i]);
            }
        }catch (ArrayIndexOutOfBoundsException e){
            System.out.println("捕获ArrayIndexOutOfBoundsException...");
        }finally {
            System.out.println("finally...");
        }
    }
}
